<?php

if (APPLICATION_ENV == 'production') {
    $this->headLink()->prependStylesheet(Ac_Util::getImageBaseUrl('/css/all.v-'.AC_VERSION.'.css'));
} else {
    $this->headLink()->prependStylesheet(Ac_Util::getImageBaseUrl('/css/custom.v-'.AC_VERSION.'.css'));
    $this->headLink()->prependStylesheet(Ac_Util::getImageBaseUrl('/css/style.v-'.AC_VERSION.'.css'));
    $this->headLink()->prependStylesheet(Ac_Util::getImageBaseUrl('/css/custom_serp.v-'.AC_VERSION.'.css'));
}

?>
<!doctype html>
<html lang="en" class="no-js">
    <head>
        <meta charset="utf-8">
        <!--[if IE]><![endif]-->
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <?php echo $this->headTitle() ?>
        <meta name="description" content="">
        <meta name="author" content="AsiaClassified.com - Easy, Free, Local">
        <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">
        <link rel="shortcut icon" href="/favicon.ico">
        <link rel="apple-touch-icon" href="/apple-touch-icon.png">        
        <script src="<?php echo Ac_Util::getImageBaseUrl('/js/modernizr-1.5.min.js')?>"></script>
        <?php echo $this->headLink() ?>
        <?php echo $this->headStyle() ?>

    </head>
    <!--[if lt IE 7 ]> <body class="ie6 index"> <![endif]-->
    <!--[if IE 7 ]>    <body class="ie7 index"> <![endif]-->
    <!--[if IE 8 ]>    <body class="ie8 index"> <![endif]-->
    <!--[if IE 9 ]>    <body class="ie9 index"> <![endif]-->
    <!--[if gt IE 9]>  <body class="index">             <![endif]-->
    <!--[if !IE]><!--> <body class="">         <!--<![endif]-->

        <div id="container" class="container <?php echo $this->placeholder('container-class');?>">
            <!-- start header -->
            <?php echo $this->partial('index/header.phtml', 'default');?>
            <!-- end header -->       
             <?php echo $this->layout()->content; ?>
             <?php echo $this->Partial('index/footer.phtml', 'default'); ?>     
        </div>
        <!--! end of #container -->
        <!--[if lt IE 7 ]>
            <script src="js/dd_belatedpng.js?v=1"></script>
          <![endif]-->
        <?php echo $this->headScript() ?>
        <?php echo $this->JQuery() ?>
        
                <!--[if lt IE 7 ]>
                  <script src="/js/dd_belatedpng.js?v=1"></script>
                <![endif]-->

        <?php /*
                  <!-- yui profiler and profileviewer - remove for production -->
                  <script src="/js/profiling/yahoo-profiling.min.js?v=1"></script>
                  <script src="/js/profiling/config.js?v=1"></script>
                  <!-- end profiling code -->
                 */ ?>

        <?php if (defined('GOOGLE_ANALYTICS')): ?>
                <!-- asynchronous google analytics: mathiasbynens.be/notes/async-analytics-snippet
                     change the UA-XXXXX-X to be your site's ID -->
                <script>
                    var _gaq = [['_setAccount', '<?php echo GOOGLE_ANALYTICS ?>'], ['_trackPageview']];
                    (function(d, t) {
                        var g = d.createElement(t),
                        s = d.getElementsByTagName(t)[0];
                        g.async = true;
                        g.src = '//www.google-analytics.com/ga.js';
                        s.parentNode.insertBefore(g, s);
                    })(document, 'script');
                </script>
                <!-- Quantcast Tag -->
                <script type="text/javascript">
                var _qevents = _qevents || [];

                (function() {
                var elem = document.createElement('script');
                elem.src = (document.location.protocol == "https:" ? "https://secure" : "http://edge") + ".quantserve.com/quant.js";
                elem.async = true;
                elem.type = "text/javascript";
                var scpt = document.getElementsByTagName('script')[0];
                scpt.parentNode.insertBefore(elem, scpt);
                })();

                _qevents.push({
                qacct:"p-91qUc-oi2FSjY"
                });
                </script>

                <noscript>
                <div style="display:none;">
                <img src="//pixel.quantserve.com/pixel/p-91qUc-oi2FSjY.gif" border="0" height="1" width="1" alt="Quantcast"/>
                </div>
                </noscript>
                <!-- End Quantcast tag -->
                    
        <?php endif; ?>
        <?php echo $this->placeholder('at-the-bottom');?>
    </body>
</html>
